using System;
using System.Collections.Generic;
using System.Text;

namespace TheLogWatcher
{
    public class RegExProvider
    {
        // This regex represents a text part that looks like:   27.06.2007 14:10:41 [WARN] org.example.package - Long message
        public const string LOG_STRUCTURE_01 = @"(\d{1,2}\.\d{1,2}\.\d{4})\s*(\d{1,2}:\d{1,2}\:\d{2})\s*\[(\w*?)\]\s*(.*)\s\-(.*\s*)+?(\d{1,2}\.\d{1,2}\.\d{4}|$)";

        // This regex represents a text part that looks like:   2007-06-27 14:10:41 [WARN] org.example.package - Long message
        public const string LOG_STRUCTURE_02 = @"(?<date>\d{4}\-\d{1,2}\-\d{1,2})\s*(?<time>\d{1,2}:\d{1,2}\:\d{2})\s*\[(?<type>\w*?)\]\s*(.*)\s\-(.*\s*)+?(\d{1,2}\.\d{1,2}\.\d{4}|$)";

        // public const string LOG_STRUCTURE_02 = @"(?<date>(?<year>\d{4})\-(?<month>\d{1,2})\-(?<day>\d{1,2}))\s*(?<time>(?<hour>\d{1,2}):(?<minute>\d{1,2})\:(?<second>\d{2}))\s*\[(?<type>\w*?)\];
    }
}
